package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-05-20
 */
@TableName("wz_order_detail")
public class WzOrderDetail extends Model<WzOrderDetail> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "order_detail_id", type = IdType.AUTO)
    private Long orderDetailId;
    /**
     * 订单编号
     */
    @TableField("order_id")
    private Long orderId;
    /**
     * 商品编号
     */
    @TableField("puoduct_id")
    private Long puoductId;
    /**
     * 名称
     */
    @TableField("goods_title")
    private String goodsTitle;
    @TableField("unit_price")
    private BigDecimal unitPrice;
    @TableField("order_price")
    private BigDecimal orderPrice;
    /**
     * 下单数量
     */
    private Integer quantity;
    /**
     * 状态:1-正常
     */
    private Integer states;
    @TableField("create_time")
    private Date createTime;


    public Long getOrderDetailId() {
        return orderDetailId;
    }

    public void setOrderDetailId(Long orderDetailId) {
        this.orderDetailId = orderDetailId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getPuoductId() {
        return puoductId;
    }

    public void setPuoductId(Long puoductId) {
        this.puoductId = puoductId;
    }

    public String getGoodsTitle() {
        return goodsTitle;
    }

    public void setGoodsTitle(String goodsTitle) {
        this.goodsTitle = goodsTitle;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Integer getStates() {
        return states;
    }

    public void setStates(Integer states) {
        this.states = states;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.orderDetailId;
    }

    @Override
    public String toString() {
        return "WzOrderDetail{" +
        "orderDetailId=" + orderDetailId +
        ", orderId=" + orderId +
        ", puoductId=" + puoductId +
        ", goodsTitle=" + goodsTitle +
        ", unitPrice=" + unitPrice +
        ", orderPrice=" + orderPrice +
        ", quantity=" + quantity +
        ", states=" + states +
        ", createTime=" + createTime +
        "}";
    }
}
